package com.example.practice.service;

import com.example.practice.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (User)表服务接口
 *
 * @author makejava
 * @since 2023-12-20 21:32:41
 */
public interface UserService {



    Integer login(User user);



    User getUserByAccount(String account);

    Integer updateUser(User user);

    User getName(Integer id);

    List<User>getCheckStudent(Integer uid);

    User getByFid(Integer fid);

    String getByUid(Integer uid);

    List<User> getDistName();
    List<User> getUserByActivity(Integer aid);

    Integer insertStudentSchool(Integer uid, Integer aid, String sname);
    String selectStudentSchool(Integer uid,Integer aid);
    Integer saveUserUrl(Integer uid, String url);

    String selectUserUrl(Integer uid);

    Integer deleteStudentSchool(Integer uid, Integer aid);

    Integer insertUser(List<User> users);

    List<User> getAllUserBySid(Integer sid);
    List<User> getAllUser();
}
